package com.xinke.module.system.model.vo.sms;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import com.xinke.component.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static com.xinke.component.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 短信日志分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class SmsLogPageReqVO extends PageParam {

    @Schema(description = "短信渠道编号", example = "15385")
    private Long channelId;

    @Schema(description = "短信渠道编码")
    private String channelCode;

    @Schema(description = "模板编号", example = "26186")
    private Long templateId;

    @Schema(description = "模板编码")
    private String templateCode;

    @Schema(description = "短信类型", example = "1")
    private Integer templateType;

    @Schema(description = "短信内容")
    private String templateContent;

    @Schema(description = "短信参数")
    private String templateParams;

    @Schema(description = "短信 API 的模板编号", example = "13131")
    private String apiTemplateId;

    @Schema(description = "手机号")
    private String smsMobile;

    @Schema(description = "用户编号", example = "27139")
    private Long userId;

    @Schema(description = "用户类型", example = "2")
    private Integer userType;

    @Schema(description = "发送状态", example = "1")
    private Integer sendStatus;

    @Schema(description = "发送时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] sendTime;

    @Schema(description = "短信 API 发送结果的编码")
    private String apiSendCode;

    @Schema(description = "短信 API 发送失败的提示")
    private String apiSendMsg;

    @Schema(description = "短信 API 发送返回的唯一请求 ID", example = "3726")
    private String apiRequestId;

    @Schema(description = "短信 API 发送返回的序号")
    private String apiSerialNo;

    @Schema(description = "接收状态", example = "1")
    private Integer receiveStatus;

    @Schema(description = "接收时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] receiveTime;

    @Schema(description = "API 接收结果的编码")
    private String apiReceiveCode;

    @Schema(description = "API 接收结果的说明")
    private String apiReceiveMsg;

}